package com.fengzuxiao.weatherdemo;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.fengzuxiao.weatherdemo.lr.LoginActivity;

public class MoreActivity extends AppCompatActivity implements View.OnClickListener {

    private ImageView ivBack;
    private TextView more_t;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_more);
        ivBack = findViewById(R.id.more_iv_back);
        more_t = findViewById(R.id.more_t);
        ivBack.setOnClickListener(this);
        more_t.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.more_iv_back:
                finish();
                break;
            case R.id.more_t:
                Intent intent = new Intent(this, LoginActivity.class);
                startActivity(intent);
                break;
        }

    }
}
